package corejava;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.hibernate.cfg.ExtendsQueueEntry;


public class Foo {
	static{
		System.out.println("Foo is loaded");
	}
	static class Goo{
		static{
			System.out.println("Goo is loaded");
		}
	}
	public static void main(String[] args) {
		Xoo x=new Xoo (){
			
		} ;
		
		Map<String, String> map=new HashMap<String, String>();
		map.put(null, "null");
		map.put(null, "kong");
		System.out.println(map.get(null));
		
		List<String> s=new ArrayList<String>();
		s.add("ac");
		s.add("ab");
		s.add("dd");
		Collections.sort(s);
		for (String string : s) {
			System.out.println(string);
		}
		System.out.println("******************");
		List<Integer> list=new ArrayList<Integer>();
		list.add(3);
		list.add(1);
		list.add(5);
		Collections.sort(list);
		for (Integer i : list) {
			System.out.println(i);
		}
	}
	
}
